package org.kernely.log;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;


public class Activator implements BundleActivator {
	
	  public void start(BundleContext context) throws Exception 
	  {
		  /*ServiceReference sRef = context.getServiceReference(HttpService.class.getName());
		    if (sRef != null)
		    {
		      HttpService service = (HttpService) context.getService(sRef);
		      // We do a mapping servlet to /VAADIN/* in order to load all vaadin components
		     // service.registerServlet("/VAADIN", new LogApplication.VaadinLogServlet(), null, null);
		     // service.registerServlet("/log", new LogApplication.VaadinLogServlet(), null, null);
		      
		      ServiceReference ref = context.getServiceReference(LogReaderService.class.getName());
		      if (ref != null)
		      {
		          LogReaderService reader = (LogReaderService) context.getService(ref);
		          LogApplication.setLogservice(reader);
		      }
		      

		    }*/
	  }

	  public void stop(BundleContext context) throws Exception 
	  {
		  
	  }
}
